package com.forenow.demo.demo3;

public class B extends A {
    public B(String name) {
        super(name);//super可以调用父类中的构造器
    }

    public static void main(String[] args) {
        B b=new B("tom");
    }
}
